package com.zdp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * @author sesshomaru
 * @date 2021/7/18 17:24
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_permissions")
@Data
public class Permission {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "permission_name")
    private String authority;

    @TableField(value = "display_name")
    private String displayName;

    private Set<Role> roles;
}
